package com.mathassistant.shared;

import java.io.Serializable;

@SuppressWarnings("serial")
public class UserDTO implements Serializable{

	private String id;
	private String name;
	private String password;
	private String email;
	private boolean isAdmin; 
	
	public UserDTO(){}
	
	public UserDTO(String id, String name, String password,String email, boolean admin){
		this.setId(id);
		this.setName(name);
		this.setPassword(password);
		this.setEmail(email);
		this.setAdmin(admin);
		
	}
	
	public UserDTO(String name, String password, String email,boolean admin){
		this.setName(name);
		this.setPassword(password);
		this.setEmail(email);
		this.setAdmin(admin);
	}
	
	public void setId(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getEmail() {
		return email;
	}

	public void setAdmin(boolean isAdmin) {
		this.isAdmin = isAdmin;
	}
	
	public boolean isAdmin() {
		return isAdmin;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPassword() {
		return password;
	}
}
